Skip to content

fix(auth): restore tty browser login menu and cover omitted inputs#26

Merged
iam-brain merged 3 commits into
mainfrom
iam-brain/fix-auth-login-menu-regression
Apr 6, 2026
Merged

fix(auth): restore tty browser login menu and cover omitted inputs#26
iam-brain merged 3 commits into
mainfrom
iam-brain/fix-auth-login-menu-regression

Conversation

@iam-brain
Copy link
Copy Markdown
Owner

This PR fixes the OpenCode TTY login regression where the browser auth menu was skipped when authorize() was called without an inputs object.

What's included:

  • cherry-picks Ram Haidar's auth-only fix from PR fix(auth): restore interactive login menu in TTY for v1.3.13 #25 so authorship is preserved
  • excludes the unrelated cache-lock fallback changes
  • adds regression tests for omitted authorize() inputs in TTY mode
  • adds branch coverage for the OPENCODE_NO_BROWSER=1 path to satisfy the ratchet

Verification:

  • npm test -- test/codex-native-oauth-auth-methods.test.ts test/codex-native-auth-menu-wiring.test.ts
  • npm run typecheck:test
  • npm run verify

ramhaidar and others added 3 commits April 6, 2026 15:11
- Remove the inputs guard from the interactive browser auth path so TTY users can reach the account-adding menu even when no prompt data is passed.
- Target: auth
@iam-brain iam-brain merged commit b85041e into main Apr 6, 2026
5 checks passed
@iam-brain iam-brain deleted the iam-brain/fix-auth-login-menu-regression branch April 7, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants